package com.objection.inherit;
public class Employee {
    private final Person person;
    private float salary;
    public Employee(Person person, float salary) {
        this.person = person;
        this.salary = salary;
    }

    public float getSalary() {
        return this.salary;
    }

    public Person getPersonalInformation() {
        return person;
    }
}


